package com.example.demo.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
@Entity
@Table(name = "Hello")
@Data
public class Hello {
		@Id
		@GenericGenerator(name = "system-uuid", strategy = "uuid")
		@GeneratedValue(generator = "system-uuid")
		private String id;
		private String name;
		private String title;
		@Column(columnDefinition = "mediumtext comment'内容'")
		private String content;
	/*
	 * @JSONField(format = "yyyy-MM-dd HH:mm")
	 * 
	 * @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	 */
		//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
		private Date updateTime;
		
	
	/*
	 * @JSONField(format = "yyyy-MM-dd HH:mm")
	 * 
	 * @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	 */
		//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
		private Date cteateTime;
		


}
